package com.jbp.model;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 推广奖励(InviteReward)实体
 * @author cc
 * @since 2020-07-26 13:53:10
 */
@ApiModel(value="InviteReward")
@Data
public class InviteReward implements Serializable {
    private static final long serialVersionUID = 1L;
        
    
    private Integer id;

    //用户id
    @ApiModelProperty(value="用户id")    
    
    private Integer userId;

    //下级用户id

    @ApiModelProperty(value="下级用户id")
    private Integer provideUserId;

    @ApiModelProperty(value="下级用户名")
    @TableField(exist = false)
    private String provideUserName;

    @ApiModelProperty(value="下级用户等级")
    @TableField(exist = false)
    private Integer provideUserLevel;
    @TableField(exist = false)
    private boolean provideUserLevelOn;

    @ApiModelProperty(value="下级用户头像")
    @TableField(exist = false)
    private String provideUserImg;

    @ApiModelProperty(value="下级用户性别")
    @TableField(exist = false)
    private String provideUserSex;

    //金额
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    //状态create 待发，success 已发
    @ApiModelProperty(value="状态create 待发，success 已发")    
    
    private String status;

        
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date createTime;

        
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date updateTime;

    //总收益
    @TableField(exist = false)
    @ApiModelProperty(value="总收益")
    private BigDecimal total;

}